#include "ReportJob.h"

namespace GPUCC
{
	ReportJob::ReportJob(Scanner& Instance, const std::string& Path, const std::string& SignatureName) : m_Scanner(Instance), m_Path(Path), m_SignatureName(SignatureName)
	{
	}

	ReportJob::~ReportJob()
	{
	}

	void ReportJob::Run()
	{
		m_Scanner.m_ResultsCS.Enter();

		m_Scanner.m_Results.push_back(InfectedDetails(this->m_Path, this->m_SignatureName));

		m_Scanner.m_ResultsCS.Leave();
	}
}